import request from '@/utils/request'
/**
 * 修改设备正在执行的任务
 */
export function updateTask(data) {
    return request({
        url: '/cloth/cloth/changeCloth',
        method: 'post',
        data: data
    })
}



// 查询员工任务圈数记录列表
export function listRecord(query) {
  return request({
    url: '/record/record/list',
    method: 'get',
    params: query
  })
}

//运行记录
export function runlist(query) {
  return request({
    url: '/record/record/runlist',
    method: 'get',
    params: query
  })
}


// 查询员工任务圈数记录详细
export function getRecord(recordId) {
  return request({
    url: '/record/record/' + recordId,
    method: 'get'
  })
}

// 新增员工任务圈数记录
export function addRecord(data) {
  return request({
    url: '/record/record',
    method: 'post',
    data: data
  })
}

// 修改员工任务圈数记录
export function updateRecord(data) {
  return request({
    url: '/record/record',
    method: 'put',
    data: data
  })
}

// 删除员工任务圈数记录
export function delRecord(recordId) {
  return request({
    url: '/record/record/' + recordId,
    method: 'delete'
  })
}


// 获取某员工当月每天的工资
export function selectDaySalary(data) {
  return request({
    url: '/record/record/selectDaySalary',
    method: 'post',
    data: data
  })
}

// 查询某员工每月工资
export function selectMonSalary(data) {
  return request({
    url: '/record/record/selectMonSalary',
    method: 'post',
    data: data
  })
}

// 查询所有员工每月工资
export function selectAllMonSalary(data) {
  return request({
    url: '/record/record/selectAllMonSalary',
    method: 'post',
    data: data
  })
}

// 查询所有员工每天的工资
export function selectAllDaySalary(data) {
  return request({
    url: '/record/record/selectAllDaySalary',
    method: 'post',
    data: data
  })
}